﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>待收案件.已保存待立案案件</title>
    <link href="~/layui/css/layui.css" rel="stylesheet" />
    <script src="~/layui/layui.js"></script>
    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script>
        var $;
        var table;
        var form;
        layui.use(['table', 'dropdown', 'form'], function () {
            $ = layui.$;
            form = layui.form;
            table = layui.table;
            var pageIndex;//存储当前打卡弹出层Id
            // 创建渲染表格实例
            table.render({
                elem: '#test',
                id: "test",
                url: '/DepartMent/getDepartInfo', // 此处为静态模拟数据，实际使用时需换成真实接口
                toolbar: '#toolbarDemo',
                defaultToolbar: ['filter', 'exports', 'print', {
                    title: '提示',
                    layEvent: 'LAYTABLE_TIPS',
                    icon: 'layui-icon-tips'
                }],
                page: true,
                limit: 5,
                limits: [3, 5, 10, 20, 50, 100],
                cols: [[
                    { type: 'checkbox', fixed: 'left' },
                    { field: 'CaseSummaryId', title: '部门编号', sort: true, align: 'center' },
                    { field: 'DepartmentName', title: '部门名称', sort: true, align: 'center' },
                    { field: 'DepartmentCategory', title: '部门类别', sort: true, align: 'center' },
                    {
                        field: 'DepartmentStats', title: '部门状态', align: 'center', templet: function (res) {
                            return res.DepartmentStats ? "禁用" : "可用";
                        }
                    },
                    { fixed: 'right', title: '操作', align: 'center', toolbar: '#barDemo' }
                ]]
            })
    </script>
</head>
<body>
    @* 表格展示区域 *@
    <div class="table">
        <table class="layui-hide" id="test" lay-filter="test"></table>
    </div>
</body>
</html>
